<?php
//print_r($online_users);
if( count($users)>0 )
{
  foreach ($users as $row)
  {        
    echo "<tr>\n";
      echo "<td><input type='checkbox' name='newsletter_selected[{$row->id}]' id='newsletter_selected' value='{$row->email}' class='ui-widget-content ui-corner-all'/></td>\n";
      echo "<td>{$row->id}</td>\n";      
      echo "<td><a href='javascript: view_user_activity({$row->id})' >{$row->username}</a></td>\n";
      echo "<td>{$row->email}</td>\n";
      echo "<td>".substr($row->registration_date,0,10)."</td>\n";
      echo "<td>{$row->ip_address}</td>\n";
      echo "<td><img src='".base_url()."img/icons/{$row->status}.png' title='".lang('status_'.$row->status)."' width='16px' /></td>\n";     
      echo "<td><img src='".base_url()."img/icons/{$row->gender}.png' title='".lang($row->gender)."' /></td>\n";
      echo "<td><img src='".base_url()."img/icons/{$row->look_for}.png' title='".lang($row->look_for)."' /></td>\n";
      echo "<td>{$row->birthdate} ({$row->age})</td>\n";
      echo "<td>".lang($row->state)."</td>\n";
      echo "<td>{$row->zip_code}</td>\n";
      echo "<td>{$row->coins}</td>\n"; // Coins
      echo "<td>{$row->bonus_coins}</td>\n"; // Bouns coins
      echo "<td>{$row->expenditure}</td>\n"; // expenditure
      echo "<td>{$row->last_message_time}</td>\n"; // Last message date
      echo "<td>{$row->num_affiliate}</td>\n"; // Affiliate
   echo "</tr>\n\n";
  }
} 
else
{
  echo "<tr><td>".lang('no_users_selected')."</td></tr>\n";
}
?>
